const common = {
  state: {
    navBarTitle:'',
    narBarStatus:true
  },
  actions: {
    // 设置导航头标题
    setNarBarTile({ commit }, titleVal) {
      commit('SET_NARBAR_TITLE',titleVal);
    },
    // 设置是否隐藏导航头
    setNarBarHidenShow({ commit }, isHiden){
      commit('SET_NARBAR_HIDEN_OR_SHOW',isHiden);
    }
  },
  mutations: {
    SET_NARBAR_TITLE: (state, val) => {
      state.navBarTitle = val
    },
    SET_NARBAR_HIDEN_OR_SHOW: (state, isHiden) => {
      state.narBarStatus = isHiden;
    }
  }
}

export default common;